{extend name='base'}
{block name='slideshow'}
<!-- banner start -->
<div class="am-g am-g-fixed blog-fixed am-u-sm-centered blog-article-margin">
    <div data-am-widget="slider" class="am-slider am-slider-b1" data-am-slider='{&quot;controlNav&quot;:false}' >
        <ul class="am-slides">
            {foreach $articleData as $v}
            <li>
                <img src="{$v['thumb']}" style="height:600px">
                <!--<div class="blog-slider-desc am-slider-desc ">-->
                    <!--<div class="blog-text-center blog-slider-con">-->
                        <!--<span><a href="{:url('index/content/index',['aid'=>$v['aid']])}" class="blog-color">Article &nbsp;</a></span>-->
                        <!--<h1 class="blog-h-margin"><a href="{:url('index/content/index',['aid'=>$v['aid']])}">{$v['title']}</a></h1>-->
                        <!--<span class="blog-bor">2015/10/9</span>-->
                    <!--</div>-->
                <!--</div>-->
            </li>
            {/foreach}
        </ul>
    </div>
</div>
<!-- banner end -->
{/block}



{block name='content'}
<div class="am-u-md-8 am-u-sm-12">
    {foreach $articleData as $v}
    <article class="am-g blog-entry-article">
        <div class="am-u-lg-12 am-u-md-12 am-u-sm-12 am-u-sm-centered blog-entry-img">
            <img src="{$v['thumb']}" style="height:430px;" alt="" class="am-u-sm-12">
        </div>
        <div class="am-u-lg-12 am-u-md-12 am-u-sm-12 blog-entry-text blog-text-center">
            <span><a href="" class="blog-color">article &nbsp;</a></span>
            <span> @{$v['author']} &nbsp;</span>
            <span>{:date('Y-m-d H:i:s',$v['sendtime'])}</span>
            <h1><a href="javascript:;">{$v['title']}</a></h1>
            <a href="{:url('index/lists/index',['cid'=>$v['cid']])}">{$v['cname']}</a>
        </div>
        <div class="am-g blog-article-widget blog-article-margin">
            <div class="am-u-lg-4 am-u-md-5 am-u-sm-7 am-u-sm-centered blog-text-center">
                <span class="am-icon-tags"> &nbsp;</span>
                {foreach $v['tags'] as $vv}
                <a href="{:url('index/lists/index',['tid'=>$vv['tid']])}">{$vv['tname']}</a> ,
                {/foreach}
                <hr>
                <!--<a href=""><span class="am-icon-qq am-icon-fw am-primary blog-icon"></span></a>-->
                <!--<a href=""><span class="am-icon-wechat am-icon-fw blog-icon"></span></a>-->
                <!--<a href=""><span class="am-icon-weibo am-icon-fw blog-icon"></span></a>-->
            </div>
        </div>
        <div class="am-u-lg-12 am-u-md-12 am-u-sm-12 am-u-sm-centered blog-entry-img">
           <p><a class="am-btn am-btn-danger " href="{:url('index/content/index',['aid'=>$v['aid']])}" target="_blank" >阅读全文</a ></p>
        </div>

    </article>
    <!---->
    {/foreach}
    <ul class="am-pagination">
        {$page}
    </ul>
</div>
<div class="am-u-md-4 am-u-sm-12 blog-sidebar">
    <div class="blog-sidebar-widget blog-bor">
        <h2 class="blog-text-center blog-title"><span>About ME</span></h2>
        <img src="__STATIC__/images/daijiandong.jpeg" alt="about me" class="blog-entry-img" >
        <p>技术小白</p>
        <p>
            我是一个技术小白，主攻php，前端是个副业
        </p><p>心中有目标，风雨不折腰。正走在成为技术大神的路上</p>
    </div>
    <div class="blog-sidebar-widget blog-bor">
        <h2 class="blog-text-center blog-title"><span>Contact ME</span></h2>
        <p>
            <a href=""><span class="am-icon-qq am-icon-fw am-primary blog-icon"></span></a>
            <a href=""><span class="am-icon-github am-icon-fw blog-icon"></span></a>
            <a href=""><span class="am-icon-weibo am-icon-fw blog-icon"></span></a>
            <a href=""><span class="am-icon-reddit am-icon-fw blog-icon"></span></a>
            <a href=""><span class="am-icon-weixin am-icon-fw blog-icon"></span></a>
        </p>
    </div>
    <div class="blog-clear-margin blog-sidebar-widget blog-bor am-g ">
        <h2 class="blog-title"><span>TAG cloud</span></h2>
        <div class="am-u-sm-12 blog-clear-padding">
            {foreach $tagData as $v}
            <a href="{:url('index/lists/index',['tid'=>$v['tid']])}" class="blog-tag">{$v['tname']}</a>
            {/foreach}
        </div>
    </div>
    <div class="blog-sidebar-widget blog-bor">
        <h2 class="blog-title"><span>Category</span></h2>
        <ul class="am-list">
            {foreach $cateData2 as $v}
            <li><a href="{:url('index/lists/index',['cid'=>$v['cid']])}">{$v['cname']}</a></li>
            {/foreach}
        </ul>
    </div>
</div>
{/block}


